<template>
    <div class="wrap">
        <div class="main">
            <div class="title">
                <img class="title-logo" :src="logo_src" />
                <comps-search></comps-search>
            </div>
            <div class="nav">
                <router-link class="nav-item" to="/">公园介绍</router-link>
                <div class="separator"></div>
                <router-link class="nav-item" to="/animal">动物多样性</router-link>
                <div class="separator"></div>
                <router-link class="nav-item" to="/plant">植物多样性</router-link>
                <div class="separator"></div>
                <router-link class="nav-item" to="/scene">自然风光</router-link>
                <div class="separator"></div>
                <router-link class="nav-item" to="/learning">学术动态</router-link>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name: 'layouts-header',
    data: function() {
        return {
            logo_src: require('../assets/logo.png'),
        }
    }
}
</script>
<style scoped>
.result {
    overflow-y: auto;
    margin: 20px 0 0 0;
    width: 100%;
    height: 100%;
}


.title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.title-logo {
    width: auto;
    height: 120px;
}

.nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 50px;
}

.nav-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    height: 100%;
    color: #565656;
    font-size: 28px;
    font-weight: bold;
    font-family: 宋体;
    text-decoration: none;
    background: url(../assets/nav-item-bk.png);
    background-position: center -100px;
    background-repeat: no-repeat;
}

.nav-item:hover {
    cursor: pointer;
    color: black;
    background-position: center 0;
}

.separator {
    width: 2px;
    height: 30px;
    background: #c2c2c2;
    transform: skewX(-10deg);
}

@media screen and (max-width: 740px) {
    .main {
        width: 100%;
    }

    .title {
        font-size: 32px;
    }

}
</style>